]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
String formatting: Fix warning
authorAdel Gadllah <adel.gadllah@gmail.com>
Mon, 5 Oct 2009 15:59:33 +0000 (17:59 +0200)
committerAdel Gadllah <adel.gadllah@gmail.com>
Mon, 5 Oct 2009 15:59:33 +0000 (17:59 +0200)
Fix to not trigger a warning like:

JS ERROR: !!!   WARNING: 'anonymous function does not always return a value'

by adding a return ""; at the end of the anonymous function.

https://bugzilla.gnome.org/show_bug.cgi?id=595661

js/misc/format.js

index e6848b5657624e0751bfd86924271a647f258548..792d306a71269f5da079f5d35bdda59dd2f082b3 100644 (file)
@@ -39,6 +39,6 @@ function format() {
                         default:
                             throw new Error('Unsupported conversion character %' + genericGroup);
                     }
-
+                    return ""; // Suppress warning
                 });
 }